<template>
    <section>
        <el-button type="primary" plain>主要按钮</el-button>
        <div class="title">这是移动端的登录页面</div>
    </section>
</template>

<script>
export default {
    async mounted () {
        let fontsize =  getComputedStyle(window.document.documentElement)['font-size']
        console.log(fontsize, 'fontsize');
        // 方式一
        let _res = await this.$api.login({
            name: 'lls',
            passWord: '12345',
            mock: true
        })
        console.log(_res, '_res 方式一');
        // 方式二
        let res = await this.$api.loginTwo({
            name: 'lls',
            passWord: '12345',
            mock: true
        })
        console.log(res, 'res 方式二');
    }
}
</script>

<style lang="scss" scoped>
.title {
    font-size: .16rem;
}
</style>